<?php

class Album extends Eloquent{
	protected $table = 'albums';
	protected $primaryKey = 'id';

	public function content(){
		return $this->belongsTo('Content', 'id');
	}

	public function media(){
		return $this->hasMany('Media', 'album_id');
	}
}